package rightsmanagement;

import superkigav.shared.rightsmanagement.ApplicationFunction;
import superkigav.shared.rightsmanagement.UserGroup;

public class PairAppfunctionGroup {
	private ApplicationFunction appFunction;
	private UserGroup userGroup;
	
	public ApplicationFunction getAppFunction() {
		return appFunction;
	}

	public void setAppFunction(ApplicationFunction appFunction) {
		this.appFunction = appFunction;
	}

	public UserGroup getUserGroup() {
		return userGroup;
	}

	public void setUserGroup(UserGroup userGroup) {
		this.userGroup = userGroup;
	}

	public PairAppfunctionGroup(ApplicationFunction p_appFunction,UserGroup p_group) {
		appFunction = p_appFunction;
		userGroup = p_group;
	}
	public boolean equals(Object o) {
		if(this.getClass() != o.getClass()) {
			return false;
		}
		if(!this.getAppFunction().equals(((PairAppfunctionGroup) o).getAppFunction())) {
			return false;
		}
		if(!this.getUserGroup().equals(((PairAppfunctionGroup) o).getUserGroup())) {
			return false;
		}
		return true;
	}
}
